package com.thymeleaf.demo.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sunny
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_goods_id", type = IdType.AUTO)
    private Integer orderGoodsId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 购物车id
     */
    private Integer carId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 规格id
     */
    private Integer formatId;

    /**
     * 购买数量
     */
    private Integer buyNum;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 规格名称
     */
    private String formatName;


}
